'''
Created on Oct 21, 2009

@author: kage
'''
import sys , os
from PyQt4 import QtCore, QtGui
from PyBatch.app.mainGUIWindow import MainWindow
            
def main():
    pyBatchApp = QtGui.QApplication(sys.argv)
    script_dir = os.path.abspath(os.path.dirname(sys.argv[0]))
    pyBatchGui = MainWindow(script_dir)
    
    r = pyBatchGui.geometry()
    r.moveCenter(QtGui.QApplication.desktop().availableGeometry().center())
    pyBatchGui.setGeometry(r)
    
    pyBatchGui.show()
    sys.exit(pyBatchApp.exec_())

if __name__ == "__main__":
    main()
